<!DOCTYPE html>
<html>
<head>
  <title>Detail</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

  <style>
   body{
    font-size: 20px;
   }
  </style>
  <script type="text/javascript">
    
    function lookup(word){
        const frmdict = document.getElementById("frmdict");
        window.location=`http://www.eudic.cn/dicts/en/${word}`;
        //frmdict.src=`/dict/${word}`;
    }
  </script>
</head>
<body>

  <h1>Words: <%= filename %></h1>
  <div class="container pd-5">
    <% for (let i = 0; i < words.length; i++) { %>
        <span ><a onclick="lookup('<%=words[i]%>')"><%=i+1%>. <%=words[i]%> </a></span>
    <% } %>
  </div>  
</body>
</html>